package com.medical.data.vo;
import com.baomidou.mybatisplus.annotation.TableField;
import com.medical.data.annotations.IdCardValidate;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class PatientVo {

    @NotBlank(message = "项目不可为空")
    @ApiModelProperty(value = "项目id")
    private String projectId;

    @NotBlank(message = "患者姓名不可为空")
    @ApiModelProperty(value = "患者姓名")
    private String patientName;

    @NotBlank(message = "患者性别不可为空")
    @ApiModelProperty(value = "患者性别")
    private String patientGender;

    @NotBlank(message = "患者身份证号不可为空")
    @IdCardValidate
    @ApiModelProperty(value = "患者身份证号")
    private String idCard;

    @ApiModelProperty(value = "患者病历号")
    private String recordNumber;

    @ApiModelProperty(value = "门诊号")
    private String outPatientNo;

    @ApiModelProperty(value = "住院号")
    private String patientNo;

    @NotBlank(message = "患者电话不可为空")
    @ApiModelProperty(value = "患者电话")
    private String patientPhone;

    @ApiModelProperty(value = "患者家庭地址")
    private String patientAddr;

}
